import os

def filler_replace(string):
    curr_dir = os.path.dirname(os.path.abspath(__file__))
    word_path = os.path.join(curr_dir, 'word.txt')

    filtered_words = []

    with open(word_path) as filtered_txt:
        lines = filtered_txt.readlines()
        for line in lines:
            filtered_words.append(line.strip())

    return replace_words(filtered_words, string)

def replace_words(filtered_words, string):
    new_string = string

    for word in filtered_words:
        if word in string:
            new_string = string.replace(word, '*' * len(word))

    if new_string == string:
        return new_string
    else:
        return replace_words(filtered_words, new_string)

